
package vue;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

import controller.behaviourAireDePoint;

import model.DefaultModel;


public class Fenetre extends JFrame{
	private DefaultModel model;

	public Fenetre(DefaultModel model) {
		this.model = model;
		
		AireDePoint aireDePoint = new AireDePoint(model);
		new behaviourAireDePoint(aireDePoint, model);
		this.add(aireDePoint);
		
		this.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			};
		});
		
		this.pack();
		
	}
}
